home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Internet Strate…Tools for the Enterprise
/
Microsoft Internet Strategy & Tools for the Enterprise.iso
/
content
/
devel.tls
/
icp
/
httpexpl.exe
/
FRMCONF.FRM
(
.txt
)
next >
Wrap
Visual Basic Form
|
1996-03-06
|
4KB
|
131 lines
VERSION 4.00
Begin VB.Form frmConfirm
BorderStyle = 3 'Fixed Dialog
Caption = "Confirm File Open"
ClientHeight = 3060
ClientLeft = 1110
ClientTop = 1530
ClientWidth = 5475
Height = 3465
Icon = "frmConf.frx":0000
Left = 1050
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3060
ScaleWidth = 5475
ShowInTaskbar = 0 'False
Top = 1185
Width = 5595
Begin VB.CheckBox chkAsk
Caption = "Al&ways ask before opening this type of file"
Height = 225
Left = 810
TabIndex = 6
Top = 2070
Value = 1 'Checked
Width = 3675
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "Cancel"
Height = 375
Left = 4170
TabIndex = 2
Top = 2520
Width = 1125
End
Begin VB.CommandButton cmdSaveAs
Caption = "Save &As..."
Height = 375
Left = 2940
TabIndex = 1
Top = 2520
Width = 1125
End
Begin VB.CommandButton cmdOpen
Caption = "&Open"
Height = 375
Left = 1710
TabIndex = 0
Top = 2520
Width = 1125
End
Begin MSComDlg.CommonDialog cmmDialog
Left = 0
Top = 2580
_Version = 65536
_ExtentX = 847
_ExtentY = 847
_StockProps = 0
End
Begin VB.Label lblFileName
AutoSize = -1 'True
Caption = """file.exe"" (Application)"
Height = 195
Left = 3120
TabIndex = 7
Top = 180
Width = 1560
End
Begin VB.Label Label1
Caption = "Please be aware that some files can contain viruses or otherise harm your computer"
Height = 435
Index = 2
Left = 810
TabIndex = 5
Top = 360
Width = 3855
End
Begin VB.Label Label1
Caption = "You hav chosen to open the file "
Height = 195
Index = 1
Left = 810
TabIndex = 4
Top = 180
Width = 2325
End
Begin VB.Label Label1
Caption = $"frmConf.frx":000C
Height = 615
Index = 0
Left = 810
TabIndex = 3
Top = 1080
Width = 3675
End
Begin VB.Image Image1
Height = 480
Left = 150
Picture = "frmConf.frx":009B
Top = 180
Width = 480
End
Attribute VB_Name = "frmConfirm"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdCancel_Click()
Me.Tag = CStr(vbCancel)
Me.Hide
End Sub
Private Sub cmdOpen_Click()
Me.Tag = CStr(vbOK)
Me.Hide
End Sub
Private Sub cmdSaveAs_Click()
cmmDialog.InitDir = App.Path
cmmDialog.ShowSave
If (cmmDialog.CancelError) Then Exit Sub
Me.Tag = cmmDialog.filename
Me.Hide ' Hide Form But Keep It Active
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If (UnloadMode = vbFormControlMenu) Then ' Was Form Closed With ControlMenu?
Cancel = True ' Cancel Request
Call cmdCancel_Click ' Simulate Cancel Button Click
End If
End Sub